﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="../Resources/Js/jquery-1.11.2.min.js"></script>
</head>
<body>
    <button onclick="testAdClick()">ad click</button>
</body>
</html>
<script>
    function testAdClick() {
        $.ajax({
            type: 'POST',
            contentType: "application/json; charset=utf-8",
            url: '../api/v2/action.ashx?sys:mod=app&sys:sno=ad&sys:act=click',
            data: JSON.stringify({os:'android',platform:'baidu_appx',app:'test',version:'1.0',mac:'mac123'}),
            success: function () {
                alert(1);
            },
            dataType: 'json'
        });
    }
</script>